/**
 *Copyright (c) 2003, 2018, UMF and/or its affiliates. All rights reserved.
 */
package com.umf.b2b.model.bindcard;

import com.umf.b2b.MerchantBaseRequest;
import com.umpay.dto.UMFResponse.Message;
import com.umpay.util.UMFUtil;

import java.util.List;

/**
<p>Title:BindCardInfo</p>  
<p>Description: ���̻�����Ϣ��ѯ�ӿ�</p>
 */
public class BindCardInfo extends MerchantBaseRequest {

	private String user_id;//����ѡ�[��Ӧ����]�����̻�ע��ɹ����������𷵻ص��˻���ţ�
	
	private String url = "/member/memberInfo";//�������
	
	private List<BankCardList> bankCardList;//[��Ӧ����]�����п���Ϣ�б�
	
	@Override
	public String getRequestUrl() {
		return baseUrl + url;
	}

	@Override
	public BindCardInfo doRequest() throws Exception {
		Message<BindCardInfo> response = UMFUtil.get(createAPIContext(), this,BindCardInfo.class);
		MerchantBaseRequest baseResult = convertResult(response, BindCardInfo.class);
		if(baseResult == null)
			return null;
		return (BindCardInfo)baseResult;
	}

	public List<BankCardList> getBankCardList() {
		return bankCardList;
	}

	public void setBankCardList(List<BankCardList> bankCardList) {
		this.bankCardList = bankCardList;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("BindCardInfo [user_id=");
		builder.append(user_id);
		builder.append(", url=");
		builder.append(url);
		builder.append(", bankCardList=");
		builder.append(bankCardList);
		builder.append(", version=");
		builder.append(version);
		builder.append(", mer_id=");
		builder.append(mer_id);
		builder.append(", ret_code=");
		builder.append(ret_code);
		builder.append(", ret_msg=");
		builder.append(ret_msg);
		builder.append(", links=");
		builder.append(links);
		builder.append("]");
		return builder.toString();
	}

}
